package com.zrc.japktool.apk.lib2cppTools.tools;

public class OSDetector {
    public static int win = 1;
    public static int linux = 2;
    public static int other = 0;
    public static int getOS() {
        String os = System.getProperty("os.name").toLowerCase();
        if (os.contains("win")) {
            return win;
        } else if (!os.contains("nix") && !os.contains("nux") && !os.contains("aix")) {
            System.out.println("Unknown operating system.");
            return other;
        } else {
            return linux;
        }
    }
}
